import { BaseEntity } from "src/baseEntity";
import { UserSys } from "src/user/userSys.entity";
import { Column, Entity, ManyToOne } from "typeorm";


@Entity("calendar")
export class Calendar extends BaseEntity {
    @ManyToOne(() => UserSys)
    user: UserSys

    @Column()
    type: string

    @Column({ type: "timestamp", nullable: true })
    date: Date
}